package com.unidt.www.module.bpm.dal.mysql.task;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.unidt.www.framework.mybatis.core.mapper.BaseMapperX;
import com.unidt.www.module.bpm.dal.dataobject.task.BpmDynamicAssignDo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BpmDynamicAssignMapper extends BaseMapperX<BpmDynamicAssignDo> {


    default  BpmDynamicAssignDo getByProcessInstanceIdAndActId(String processInstanceId,String actId){

        LambdaQueryWrapper<BpmDynamicAssignDo> lambdaQueryWrapper =
                new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(BpmDynamicAssignDo::getProcInstId,processInstanceId);
        lambdaQueryWrapper.eq(BpmDynamicAssignDo::getExeActId,actId);
         return this.selectOne(lambdaQueryWrapper);
    }
}
